package xiangMu.pc;

public class Software {
    private String name;     //软件名称
    private int size;   //软件大小
    private boolean state = false;  //软件默认状态是未安装状态

    public Software() {
    }

    public Software(String name, int size) {
        this.name = name;
        this.size = size;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public boolean isState() {
        return state;
    }

    public void setState(boolean state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return name + " " + size + "M";
    }
}
